package com.itzjc.domain.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.math.BigInteger;

/**
 * 数据库windValue01表对应的pojo
 *
 * @className: WindValue
 * @date: 2021-06-15 09:25
 **/
public class DeflectionValue01 implements Serializable {
    private Integer Did;
    private Double value;
    private BigInteger createTime;
    @JsonProperty("sensor_id")
    private Integer sensorId;
    @JsonProperty("survey_area")
    private Integer surveyArea;
    private Integer pjId;

    //有参、空参、set/get、toString
    //业务需要，需要包含value、createTime、sensorId、pjId的构造方法


    public DeflectionValue01(Double value, BigInteger createTime, Integer sensorId, Integer pjId) {
        this.value = value;
        this.createTime = createTime;
        this.sensorId = sensorId;
        this.pjId = pjId;
    }

    @Override
    public String toString() {
        return "DeflectionValue01{" +
                "Did=" + Did +
                ", value=" + value +
                ", createTime=" + createTime +
                ", sensorId=" + sensorId +
                ", surveyArea=" + surveyArea +
                ", pjId=" + pjId +
                '}';
    }

    public Integer getDid() {
        return Did;
    }

    public void setDid(Integer did) {
        Did = did;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public BigInteger getCreateTime() {
        return createTime;
    }

    public void setCreateTime(BigInteger createTime) {
        this.createTime = createTime;
    }

    public Integer getSensorId() {
        return sensorId;
    }

    public void setSensorId(Integer sensorId) {
        this.sensorId = sensorId;
    }

    public Integer getSurveyArea() {
        return surveyArea;
    }

    public void setSurveyArea(Integer surveyArea) {
        this.surveyArea = surveyArea;
    }

    public Integer getPjId() {
        return pjId;
    }

    public void setPjId(Integer pjId) {
        this.pjId = pjId;
    }

    public DeflectionValue01(Double value, BigInteger createTime, Integer sensorId) {
        this.value = value;
        this.createTime = createTime;
        this.sensorId = sensorId;
    }

    public DeflectionValue01() {
    }
}
